import zmq,time
context = zmq.Context.instance()
sock = context.socket(zmq.REQ)
sock.bind('tcp://*:8001')

while True:
  t = str(time.time())
  print "send",t
  sock.send(t)
  msg = sock.recv()
  print "msg",msg
